package cn.com.bsfit.netty.config.constants;

/**
 * 枚举类名 ErrorCodeEnums
 * 描述 错误码枚举
 *
 * @author hedonglin
 * @version 1.0
 * @date 2019/9/29 12:02
 */
public enum ErrorCodeEnums {
    SUCCESS(200, "成功"),
    REQ_PARAM_ERROR(403, "请求参数错误"),
    SERVER_INNER_ERROR(500, "系统异常"),

    ;

    ErrorCodeEnums(int errCode, String errCodeDesc) {
        this.errCode = errCode;
        this.errCodeDesc = errCodeDesc;
    }
    private int errCode;
    private String errCodeDesc;

    public int getErrCode() {
        return errCode;
    }

    public String getErrCodeDesc() {
        return errCodeDesc;
    }}
